package com.zzjson.demo;

import com.zzjson.api.HelloApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.test</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年04月08日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
@RestController
@RequestMapping("/")
public class TestController {
    @Autowired
    private HelloApi helloApi;

    @RequestMapping
    public String index() {
        return helloApi.sayHello("hello");
    }
}